package com.wayhome.srpingbootmybatis.boc.service;

import com.wayhome.srpingbootmybatis.boc.dao.BocOrderInfoDao;
import com.wayhome.srpingbootmybatis.boc.dto.BocOrderInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class BocOrderServiceImpl implements BocOrderService{

    @Resource
    private BocOrderInfoDao bocOrderInfoDao;

    @Override
    @Async
    public void saveBocOrder(BocOrderInfo orderInfo) {
        bocOrderInfoDao.saveBocOrder(orderInfo);
    }

    @Override
    public BocOrderInfo selectBocOrderByUK(BocOrderInfo orderInfo) {
        return bocOrderInfoDao.selectBocOrderByUK(orderInfo);
    }
}
